/**
 * Created by 小敏哥 on 2018/1/6.
 */
import commonAction from "../../../../../js/actions/commonAction";
import {ILLEGAL_LIST,FINISHED_REQUIREMENTS} from "./actionsTypes";

export const illegalList = data => ({type: ILLEGAL_LIST, data: data});
export const finishedRequirements = data => ({type: FINISHED_REQUIREMENTS, data: data});

//获取违章列表
export const getIllegalList=(data,callBack) => {
    return commonAction.simplePost(data, 'emsc-partner/b/carViola/getPeccByCarId.ajax', illegalList, callBack);
};


//获取已完成的资料
export const getFinishedRequirements=(data,callBack) => {
    return commonAction.simplePost(data, 'emsc-partner/b/carViola/selectCarRequirements.ajax', finishedRequirements, callBack);
};